﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReceivingWeight.aspx.cs"
    Inherits="WMS6.Web.Inbound.ReceivingWeight" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>ReceivingWeight</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" type="text/javascript"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/checkbox.js" type="text/javascript"></script>

    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>

    <script type="text/javascript">
       
        //初始化页面
        window.onload = function(){
            initDetailPage();
        }
        
    </script>

</head>
<body>
    <form id="F4260" runat="server">
    <div>
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblASN" runat="server" CssClass="label_header" Text="收货称重" meta:resourcekey="lblASN"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" CssClass="button" Enabled="false" Text="<%$Resources:ButtonResource,btnSave%>"
                            AccessKey="s" OnClick="btnSave_Click" />
                    </td>
                </tr>
            </table>
        </div>
        <div>
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message" meta:resourcekey="lblMsg"></asp:Label>
        </div>
        <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL" id="divL1">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur" onclick="setTab('one',1,1)"
                id="divM1">
                <asp:Label ID="one1" CssClass="hover" runat="server" meta:resourcekey="lblReceivingWeight" Text="收货称重"></asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR" id="divR1">
                </div>
            </div>
        </div>
        <div id="div_content">
            <div id="con_one_1" style="display: block;">
                <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td style="width: 180px">
                            <asp:Label CssClass="label" ID="lblReceiptID" runat="server" Text="入库通知单号" meta:resourcekey="lblReceiptID"></asp:Label>
                        </td>
                        <td style="width: 180px">
                            <asp:Label CssClass="label" ID="lblPoID" runat="server" Text="采购订单号" meta:resourcekey="lblPoID"></asp:Label>
                        </td>
                        <td style="width: 180px">
                            <asp:Label CssClass="label" ID="lblExternalID" runat="server" Text="外部订单号" meta:resourcekey="lblExternalID"></asp:Label>
                        </td>
                        <td style="width: 180px">
                            <asp:Label CssClass="label" ID="lblWeightType" runat="server" Text="需称重品种" meta:resourcekey="lblWeightType"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtReceiptID" runat="server" CssClass="textbox" OnTextChanged="txtReceiptID_OnTextChanged"
                                AutoPostBack="true" meta:resourcekey="txtReceiptID"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtPoID" runat="server" CssClass="textbox" Enabled="false" meta:resourcekey="txtPoID"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtExternalID" runat="server" CssClass="textbox" Enabled="false"
                                meta:resourcekey="txtExternalID"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtWeightType" runat="server" CssClass="textbox" Enabled="false"
                                meta:resourcekey="txtWeightType"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 180px">
                            <asp:Label CssClass="label" ID="lblReceivingDate" runat="server" Text="收货日期" meta:resourcekey="lblReceivingDate"></asp:Label>
                        </td>
                        <td style="width: 180px">
                            <asp:Label CssClass="label" ID="lblOwnerID" runat="server" Text="货主" meta:resourcekey="lblOwnerID"></asp:Label>
                        </td>
                        <td style="width: 180px">
                            <asp:Label CssClass="label" ID="lblVendorID" runat="server" Text="供应商" meta:resourcekey="lblVendorID"></asp:Label>
                        </td>
                        <td style="width: 180px">
                            <asp:Label CssClass="label" ID="lblWeightedType" runat="server" Text="已称重品种" meta:resourcekey="lblWeightedType"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtReceivingDate" runat="server" CssClass="textbox" Enabled="false"
                                meta:resourcekey="txtReceivingDate"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtOwnerID" runat="server" CssClass="textbox" Enabled="false" meta:resourcekey="txtOwnerID"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtVendorID" runat="server" CssClass="textbox" Enabled="false" meta:resourcekey="txtVendorID"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtWeightedType" runat="server" CssClass="textbox" Enabled="false"
                                meta:resourcekey="txtWeightedType"></asp:TextBox>
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </div>
            <div style="overflow-y: auto;overflow-x: auto; height: 390px; width: 1000px">
                <asp:GridView ID="gvReceivingWeight" runat="server" AllowSorting="False" AutoGenerateColumns="False"
                    PageSize="10" CssClass="gridview" DataKeyNames="Weight,SkuID,SkuStyle" OnRowDataBound="gvReceivingWeight_RowDataBound"
                    Width="1000px" meta:resourcekey="gvReceivingWeight">
                    <FooterStyle CssClass="GridViewFooterStyle" />
                    <RowStyle CssClass="GridViewRowStyle" />
                    <HeaderStyle CssClass="FixedHeader" />
                    <PagerStyle CssClass="GridViewPageStyle" />
                    <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                    <Columns>
                        <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="No">
                            <ItemStyle CssClass="GridViewRowWidth_40" />
                        </asp:BoundField>
                        <asp:TemplateField meta:resourcekey="TemplateField">
                            <HeaderTemplate>
                                <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvReceivingWeight');"
                                    meta:resourcekey="CheckBox1" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelect" />
                            </ItemTemplate>
                            <FooterTemplate>
                                <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvReceivingWeight');"
                                    meta:resourcekey="CheckBox2" />
                            </FooterTemplate>
                            <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40" />
                            <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40" />
                        </asp:TemplateField>
                        <asp:TemplateField FooterText="状态" HeaderText="状态" meta:resourcekey="STATUS_D">
                            <ItemTemplate>
                                <asp:Image ID="StatusImg" runat="server" ImageUrl="~/Images/wrong.gif" />
                            </ItemTemplate>
                            <ItemStyle CssClass="GridViewRowWidth_50" HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="LPNID" HeaderText="箱号" FooterText="箱号" SortExpression="LPNID"
                            meta:resourcekey="LPNID">
                            <ItemStyle CssClass="GridViewRowWidth_100" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="重量" FooterText="重量" SortExpression="Weight" meta:resourcekey="Weight">
                            <ItemTemplate>
                                <asp:Label ID="lblWeight" runat="server" Text='<%# GetPreferenceDigit(Eval("Weight").ToString()) %>'></asp:Label>
                            </ItemTemplate>
                            <ItemStyle CssClass="GridViewRowWidth_100" />
                        </asp:TemplateField>
                        <asp:TemplateField FooterText="货品代码" HeaderText="货品代码" SortExpression="SkuID" meta:resourcekey="SkuID">
                            <ItemTemplate>
                                <asp:Label ID="lblSkuID" runat="server" Text='<%# Eval("SkuID") %>'></asp:Label>
                            </ItemTemplate>
                            <ItemStyle CssClass="GridViewRowWidth_100" />
                        </asp:TemplateField>
                        <asp:TemplateField FooterText="货品描述" HeaderText="货品描述" SortExpression="SkuDescr"
                            meta:resourcekey="SkuDescr">
                            <ItemTemplate>
                                <asp:Label ID="lblSkuDescr" runat="server" Text='<%# Eval("SkuDescr") %>'></asp:Label>
                            </ItemTemplate>
                            <ItemStyle CssClass="GridViewRowWidth_200" />
                        </asp:TemplateField>
                        <asp:TemplateField FooterText="货品条码" HeaderText="货品条码" SortExpression="SkuBarcode"
                            meta:resourcekey="SkuBarcode">
                            <ItemTemplate>
                                <asp:Label ID="lblSkuBarcode" runat="server" Text='<%# Eval("SkuBarcode") %>' ></asp:Label>
                            </ItemTemplate>
                            <ItemStyle CssClass="GridViewRowWidth_200" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="SkuStyle" HeaderText="货品型号" FooterText="货品型号" SortExpression="SkuStyle"
                            meta:resourcekey="SkuStyle">
                            <ItemStyle CssClass="GridViewRowWidth_100" />
                        </asp:BoundField>
                    </Columns>
                </asp:GridView>
            </div>
            <div>
                <tr style="height: 10px;">
                    <td>
                    </td>
                </tr>
            </div>
            <div>
                <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td style="width: 180px">
                            <asp:Label CssClass="label" ID="lblSkuDescr" runat="server" Text="货品描述" meta:resourcekey="lblSkuDescr"></asp:Label>
                        </td>
                        <td style="width: 180px">
                        </td>
                        <td style="width: 180px">
                            <asp:Label CssClass="label" ID="lblSkuPrice" runat="server" Text="货品单价" meta:resourcekey="lblSkuPrice"></asp:Label>
                        </td>
                        <td style="width: 180px">
                            <asp:Label CssClass="label" ID="lblSkuStyle" runat="server" Text="货品型号" meta:resourcekey="lblSkuStyle"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:TextBox ID="txtSkuDescr" runat="server" CssClass="textbox" Enabled="false" meta:resourcekey="txtSkuDescr"
                                Width="320px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtSkuPrice" runat="server" CssClass="textbox" Enabled="false" meta:resourcekey="txtSkuPrice"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtSkuStyle" runat="server" CssClass="textbox" Enabled="false" meta:resourcekey="txtSkuStyle"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 180px">
                            <asp:Label CssClass="label" ID="lblBarcode" runat="server" Text="条码扫描" meta:resourcekey="lblBarcode"></asp:Label>
                        </td>
                        <td style="width: 180px">
                        </td>
                        <td style="width: 180px">
                            <asp:Label CssClass="label" ID="lblSkuWeight" runat="server" Text="货品净重" meta:resourcekey="lblSkuWeight"></asp:Label>
                        </td>
                        <td style="width: 180px">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:TextBox ID="txtBarcode" runat="server" CssClass="textbox" OnTextChanged="txtBarcode_OnTextChanged"
                                AutoPostBack="true" meta:resourcekey="txtBarcode" Width="320px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtSkuWeight" runat="server" CssClass="textbox" OnTextChanged="txtBarcode_OnTextChanged"
                                AutoPostBack="true" meta:resourcekey="txtSkuWeight"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <input id="hdnActionID" type="hidden" runat="server" />
        <input type="hidden" id="hdnDataFormat" runat="server" />
        <input type="hidden" id="hdncalendarFlag" runat="server" />
        <input type="hidden" id="hdnGvCss" runat="server" />
        <input type="hidden" id="hdnIndex" runat="server" />
        <input type="hidden" id="hdnWeighted" runat="server" value="0" />
    </div>
    </form>
</body>
</html>

<script language="javascript" type="text/javascript" event="onclick" for="document">
		<!--
					hiddenCalendarDiv();
		//-->
</script>

